package com.ruoyi.sys.assets.service.Impl;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.sys.assets.entity.TbEquipmentType;
import com.ruoyi.sys.assets.mapper.TbEquipmentTypeMapper;
import com.ruoyi.sys.assets.service.TbEquipmentTypeService;
import com.ruoyi.sys.assets.vo.TbEquipmentTypeVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TbEquipmentTypeServiceImpl implements TbEquipmentTypeService {
    @Resource
    private TbEquipmentTypeMapper tbetMapper;
    R  r = new R();
    @Override
    public R<TbEquipmentType> getAll(TbEquipmentTypeVO vo) {
        List<TbEquipmentType> all = tbetMapper.getAll(vo);
        if (all!= null) {
            r.setCode(0);
            r.setData(all);
            r.setMsg("查询成功");
        }else{
            r.setCode(-1);
        }

        return r;
    }
}
